package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.item.dto.SpecParamDTO;
import com.leyou.item.dto.SpuDetailDTO;
import com.leyou.item.entity.SpuDetail;

import java.util.List;

public interface SpuDetailService extends IService<SpuDetail> {

    /**
     * 根据id查询detail
     * @param id 商品id
     * @return 商品的Detail
     */
    SpuDetailDTO queryGoodsDetailById(Long id);

    /**
     * 根据spuId查询spu的所有规格参数值
     * @param id spu的id
     * @return 规格参数值
     */
    List<SpecParamDTO> querySpecValues(Long id, Boolean searching);
}
